﻿namespace OasisCiq.Xpil
{
    using System;
    using System.Linq;

    /// <summary>
    /// List of category the person belongs to
    /// </summary>
    public class PersonCategoryTypeList : XS.XSNormalizedString
    {
        private static readonly string[] PossibleValues = new[]
        {
            "ExistingCustomer",
            "PotentialCustomer",
            "Employee",
            "Friend"
        };

        public PersonCategoryTypeList(string value)
            : base(value)
        {
            if (!PossibleValues.Contains(value))
            {
                throw new ArgumentOutOfRangeException();
            }
        }
    }
}